package com.design.pattern.observer.custom;


/**
 * A观察者
 */
public class AObserver implements Observer {


    private String name;

    public AObserver(String name){
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "收到消息..");
    }
}
